package gov.child.entities.vo;

import gov.child.entities.po.EAdmin;
import gov.child.entities.vo.annotation.Alias;

/**
 * @author fzh
 * @since 2017/9/16
 */
public class Admin {

    public static final Admin EMPTY_ADMIN = new Admin();

    public static Admin parseFrom(EAdmin admin) {
        return BeanTransformer.transform(Admin.class, admin);
    }

    public static EAdmin parseTo(Admin admin) {
        return BeanTransformer.transform(EAdmin.class, admin);
    }

    @Alias("id")
    private Integer adminId;
    private Integer deptId;
    private String name;
    private String phone;
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
